import datetime
import unittest

from General.Mapper import TopicCountMapper


class MyTestCase(unittest.TestCase):
    topicCountMapper = TopicCountMapper()

    def test_getTopicCount(self):
        now = datetime.datetime.now()
        startTime = datetime.datetime(now.year, now.month, now.day, 0, 0, 0)
        endTime = datetime.datetime(now.year, now.month, now.day, 23, 59, 59)
        print(self.topicCountMapper.getTopicCount(startTime, endTime))


if __name__ == '__main__':
    unittest.main()
